<template>
  <div id="PageTools-container">
    <el-card>
      <el-row type="flex">
        <el-col>
          <slot name="before">
            <el-tag v-if="isShow">
              <i class="el-icon-info" />
              {{ tip }}
            </el-tag>
          </slot>
        </el-col>
        <el-col class="right-col">
          <slot name="after">
            1
          </slot>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'PageTools',
  props: {
    tip: {
      type: String,
      default: ''
    },
    isShow: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {}
  },
  created() {},
  methods: {}
}
</script>

<style lang='less' scoped>
.right-col {
  display: flex;
  justify-content: end;
}
</style>
